﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace road2.ViewModels
{
    class ViewModelLocator
    {
        private Dictionary<string, ViewModelBase> _viewModels;

        public ViewModelLocator()
        {
            _viewModels = new Dictionary<string, ViewModelBase>();

            _viewModels.Add("Main", new MainViewModel());
        }

        public ViewModelBase this[string viewModel]
        {
            get { return _viewModels[viewModel]; }
        }
    }
}
